<!DOCTYPE html>
<html lang="en">
<head>

    <!--查看已上架的前端展示新闻-->
    <!--查看已上架的前端展示新闻-->
    <!--查看已上架的前端展示新闻-->

    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <style>
        #div1{
            width: 95%;
            /*border: 1px red solid;*/
            text-indent:2em;
            margin: 0 auto;
        }
        #div2{
            width: 99%;
            height: 50px;
            color:black;
            font-weight: bolder;
            font-size: 40px;
            text-align: center;
        }
        #div3{
            width: 900px;
            margin: 0 auto;
            background-color: #01ABA5;
        }
        #div1 img{
            margin-left: 15%;
        }
    </style>
</head>
<body>
<div id="app">
    <div  id="div3">
        <div id="div2">{{Info.title}}</div>
        <div style="width: 99%;text-align: center"><a href="/ssm/index.html" target="_self"><span>返回首页</span></a></div>
        <div id="div1" v-html="Info.content">

        </div>
        <div style="text-align: right">发布时间:<div style="font-weight: bolder;display: inline-block">{{Info.time}}</div></div>
        <!--<div style="text-align: right">发布作者:<div style="font-weight: bolder;display: inline-block">{{Info.newsReporter.rname}}</div></div>-->
    </div>
</div>
</body>
<script>
    var id = window.location.search.split("=")[1];

    $.get("/ssm/news/show/"+id,function (backData) {
        haha.Info = backData.data;
    });
    var haha = new Vue({
        el:"#app",
        data:{
            Info:{}
        },
        methods:{}
    })
</script>
</html>